<%@ page import="org.jasig.cas.client.validation.Assertion" %>
<%@ page import="org.jasig.cas.client.util.AssertionHolder" %>
<%@ page import="org.jasig.cas.client.authentication.AttributePrincipal" %>
<%@ page import="java.util.Map" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%
	Assertion assertion = AssertionHolder.getAssertion();

	AttributePrincipal ap =  assertion.getPrincipal();   //获取AttributePrincipal对象，这是客户端对象

	String name = ap.getName();

	Map<String,Object> att = ap.getAttributes();//获取属性值，为一个Map类型。

%>

<html>
    <head>
        <meta charset="UTF-8">
        <title>智能报修系统</title>
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <link href="<%= request.getContextPath()%>resources/mobileOperator/css/mui.min.css" rel="stylesheet" />
        <link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>resources/mobileOperator/css/operator.css"/>
        <script src="<%= request.getContextPath()%>resources/mobileOperator/js/operator.js" type="text/javascript" charset="utf-8"></script>
  		<script src="<%= request.getContextPath()%>resources/mobileOperator/js/angular.min.js" type="text/javascript" charset="utf-8"></script>
  		<link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>resources/mobileOperator/css/side.css"/>
		<!--交互所需css-->
		<link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>resources/mobileOperator/css/jNotify.jquery.css"/>
    </head>

    <body ng-app="operatorside">
        <div class="mui-content" style="background: #fff;"  ng-controller="operatorsidegetinfo">
			<input type="hidden" class="useraccount" value="<%=name %>"/>
           <!-- 我是侧滑页-->
            <!--<button type="button" class="mui-btn mui-btn-blue" id="btn_extras">点我关闭侧滑</button>-->
       <div id="left_menu">
        	<div id="left_menu_top">
        		<img src="../../resources/mobileOperator/img/logo.png"/>
        		<a id="status">
        			<span class="mui-icon mui-icon-star"></span>
        			运维人员
        		</a>
        		<a id="num">
        			<span class="mui-icon mui-icon-info"></span>
					<!--运维人员工号-->
        			{{operatorinfo.userAccount}}
        			</a>
        		<a id="name">
        			<span class="mui-icon mui-icon-contact" ></span>
        			{{operatorinfo.userName}}
        			</a>
				<!--点击修改信息，判断如果运维人员是老师，就不允许修改，如果是学生就允许修改！-->
        			<a id="alter" ng-click="isshow(operatorinfo.userType)">修改信息</a>
        	</div>
        	<div id="out">
        		<input type="button" name="out" id="outlogin" value="退出登录"   ng-click="logout()"/>
        	</div>
        	<div id="ITcenter">
        		<a>服务电话：</a>
        		<a id="servicePhone">{{servicephone}}</a>
        	</div>
        </div>
        <div id="alter_mask">
        	<div class="form">

        		<input type="text" name="phone" maxlength="11" id="phone" value="" placeholder="电话" ng-model="operatorinfo.userPhone" />
        		<input type="submit" value="确认修改" id="alter_ok" ng-click="changephone()"/>
				<input type="button" value="取消" id="cancel" ng-click="cancelchangephone()"/>
        	</div>
        </div>
        </div>
        <script src="<%= request.getContextPath()%>resources/mobileOperator/js/mui.min.js"></script>
        <script type="text/javascript">
            mui.init();
</script>
		<!--引入交互所需文件-->
	<script src="<%= request.getContextPath()%>resources/mobileOperator/js/MobileOperatorController.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="<%= request.getContextPath()%>resources/mobileOperator/js/jquery-3.1.1.min.js"></script>
		<script type="text/javascript" src="<%= request.getContextPath()%>resources/mobileOperator/js/jNotify.jquery.js"></script>
   </body>
</html>